module.exports = {
  scanMethods: function(service, obj, alias) {
    Reflect.ownKeys(obj).forEach(el => {
      if (typeof el === 'string' && el !== '__filename' && el !== 'constructor' && !el.startsWith('_')) {
        if (typeof obj[el] === 'function') {
          service.addMethod(obj[el], obj, alias + '_' + el);
        }
      }
    });
  }
};
